package com.example.ssmxuankeback.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.ssmxuankeback.handler.JsonTypeHandler;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
@TableName(value = "course")
@Schema(name = "Course", description = "课程表")
public class Course {
    @TableId("course_id")
    @Schema(description = "课程id")
    private Long courseId;      // 课程编号
    @Schema(description = "课程名称")
    private String courseName;    // 课程名称
    @Schema(description = "学分")
    private Integer credit;       // 学分（1-6）
    @Schema(description = "教师id")
    private Long teacherId;     // 教师ID（教师工号）（（关联users表）
    @Schema(description = "最大选课人数")
    private Integer maxSeats;     // 最大容量
    @Schema(description = "当前选课人数")
    private Integer currentSeats; // 当前选课人数
    @Schema(description = "考试类型")
    private String examType;      // 考试类型

}